package cn.com.jtang.wedding.service;

import java.util.List;
import java.util.Map;

import cn.com.jtang.wedding.model.Suggestion;

public interface SuggestionManager {
	
	//添加建议
	public String add(Suggestion suggestion);
	
	//查询所有建议,maxlength为建议的内容的最大长度
	public List<Suggestion> queryAll(Map<String, Object> map, int start, int end,int maxlength);
	
	//根据建议的提交管理员ID查询建议
	public List<Suggestion> queryByAdminUserId(long id);

	//根据map的查询条件统计
	public int getCount(Map<String, Object> map);

	//根据ID获得建议
	public Suggestion queryById(long id);
	
	//根据ID更新建议
	public int updateById(Long id, Suggestion suggestion) ;
	
	//删除建议
	public int delete(Long id);
}
